import axios from "./index";
const URL = "/";
let api = {
  common: {
    upload: params => axios.post(URL + "common/upload", params), // 上传图片
    is_login: params => axios.post(URL + "common/is_login", params), // 是否登录
    login: params => axios.post(URL + "common/login", params), // 登录
    logout: params => axios.post(URL + "common/logout", params), // 退出
    province: params => axios.get(URL + "common/province", params), // 省份
    goodsLevels: params => axios.get(URL + "common/goodsLevelsbc", params),
    goodsChallengeLevels: params => axios.get(URL + "common/goodsChallengeLevels", params),
    challengegoodsLevels: params => axios.get(URL + "common/challengegoodsLevels", params),
    user: params => axios.get(URL + "common/user", params),
    user_map: params => axios.get(URL + "common/user_map", params),
    count: params => axios.get(URL + "common/count", params),
    order: params => axios.get(URL + "common/order", params),
    getPrize: params => axios.get(URL + "common/getPrize", params),
    getTPrize: params => axios.get(URL + "common/getPrize", params),
    getFPrize: params => axios.get(URL + "common/getPrize", params),
    getZpPrize: params => axios.get(URL + "common/getZpPrize", params),
    getChallengePrizes: params => axios.get(URL + "common/getSChallengePrize", params),
    getChallengePrize: params => axios.get(URL + "common/getChallengePrize", params),
    getTChallengePrize: params => axios.get(URL + "common/getTChallengePrize", params),
    getBlindPrizes: params => axios.get(URL + "common/getSBlindPrize", params),
    getWealPrize: params => axios.get(URL + "common/getWealPrize", params),
    contentCate: params => axios.get(URL + "common/contentCate", params),
    goodsCate: params => axios.get(URL + "common/goodsCate", params),
    goodsAttrs: params => axios.get(URL + "common/goodsAttrs", params),
    express: params => axios.get(URL + "common/express", params),
    getCoupon: params => axios.get(URL + "common/getCoupon", params),
    getTurnplateCoupon: params => axios.get(URL + "common/getTurnplateCoupon", params),
    getBackCard: params => axios.get(URL + "common/getBackCard", params),
    questionCate: params => axios.get(URL + "common/questionCate", params),
    getUserLevel: params => axios.get(URL + "common/getUserLevel", params),
    blindBox: params => axios.get(URL + "common/blindBox", params),
    challengeBox: params => axios.get(URL + "common/challengeBox", params),
    challengeBoxs: params => axios.get(URL + "common/challengeBoxs", params),
    getBox: params => axios.get(URL + "common/getBox", params),
    getBoxs: params => axios.get(URL + "common/getBoxs", params),
  },
  roles: {
    index: params => axios.get(URL + "roles", params),
    show: (id, params) => axios.get(URL + `roles/${id}`, params),
    store: params => axios.post(URL + "roles", params),
    edit: (id, params) => axios.put(URL + `roles/${id}`, params),
    del: (id, params) => axios.delete(URL + `roles/${id}`, params),
    permission: params => axios.get(URL + "rolesPermission", params),
    menu: params => axios.get(URL + "rolesMenu", params)
  },
  admins: {
    index: params => axios.get(URL + "admins", params),
    show: (id, params) => axios.get(URL + `admins/${id}`, params),
    store: params => axios.post(URL + "admins", params),
    edit: (id, params) => axios.put(URL + `admins/${id}`, params),
    del: (id, params) => axios.delete(URL + `admins/${id}`, params),
    role: params => axios.get(URL + `adminsRole`, params),
    password: params => axios.put(URL + `admins/password`, params),
    logout: params => axios.get(URL + `admins/logout`, params)
  },
  //定制套件
  customCommissions:{
    index: params => axios.get(URL + "customCommissions", params),
    show: (id, params) => axios.get(URL + `customCommission/${id}`, params),
    status: (id, params) => axios.put(URL + `customCommission/status/${id}`, params),
  },
  // 幸运屋
  luckDraws: {
    index: params => axios.get(URL + "luckDraws", params),
    show: (id, params) => axios.get(URL + `luckDraws/${id}`, params),
    store: params => axios.post(URL + "luckDraws", params),
    edit: (id, params) => axios.put(URL + `luckDraws/${id}`, params),
    status: (id, params) => axios.put(URL + `luckDraws/status/${id}`, params),
    updatePrice: (params) => axios.post(URL + `luckDraws/updatePrice`, params),
    updateProbability: (params) => axios.post(URL + `luckDraws/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `luckDraws/${id}`, params)
  },
  menus: {
    index: params => axios.get(URL + "menus", params),
    show: (id, params) => axios.get(URL + `menus/${id}`, params),
    store: params => axios.post(URL + "menus", params),
    edit: (id, params) => axios.put(URL + `menus/${id}`, params),
    del: (id, params) => axios.delete(URL + `menus/${id}`, params),
    parent: params => axios.get(URL + `menusParent`, params),
    child: params => axios.get(URL + `menusChild`, params)
  },
  permissions: {
    index: params => axios.get(URL + "permissions", params),
    show: (id, params) => axios.get(URL + `permissions/${id}`, params),
    store: params => axios.post(URL + "permissions", params),
    edit: (id, params) => axios.put(URL + `permissions/${id}`, params),
    del: (id, params) => axios.delete(URL + `permissions/${id}`, params)
  },
  goods: {
    index: params => axios.get(URL + "goods", params),
    show: (id, params) => axios.get(URL + `goods/${id}`, params),
    store: params => axios.post(URL + "goods", params),
    edit: (id, params) => axios.put(URL + `goods/${id}`, params),
    status: (id, params) => axios.put(URL + `goods/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `goods/${id}`, params)
  },
  robots: {
    index: params => axios.get(URL + "robots", params),
    store: params => axios.post(URL + "robots", params),
    status: (id, params) => axios.put(URL + `robots/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `robots/${id}`, params)
  },
  goodsCates: {
    index: params => axios.get(URL + "goodsCates", params),
    show: (id, params) => axios.get(URL + `goodsCates/${id}`, params),
    store: params => axios.post(URL + "goodsCates", params),
    edit: (id, params) => axios.put(URL + `goodsCates/${id}`, params),
    del: (id, params) => axios.delete(URL + `goodsCates/${id}`, params)
  },
  goodsAttrs: {
    index: params => axios.get(URL + "goodsAttrs", params),
    show: (id, params) => axios.get(URL + `goodsAttrs/${id}`, params),
    store: params => axios.post(URL + "goodsAttrs", params),
    edit: (id, params) => axios.put(URL + `goodsAttrs/${id}`, params),
    del: (id, params) => axios.delete(URL + `goodsAttrs/${id}`, params)
  },
  users: {
    index: params => axios.get(URL + "users", params),
    giveUserPrize: params => axios.post(URL + `users/giveUserPrize`, params),
    // updateUserStatus: params => axios.post(URL + `users/updateUserStatus`, params),
    getUserInfo: (id, params) => axios.get(URL + "users/getUserInfo/${id}", params),
    show: (id, params) => axios.get(URL + `users/${id}`, params),
    status: (id, params) => axios.put(URL + `users/status/${id}`, params),
    update: (id, params) => axios.put(URL + `users/${id}`, params),
    recharge: (id, params) => axios.put(URL + `users/recharge/${id}`, params),
    deduct: (id, params) => axios.put(URL + `users/deduct/${id}`, params),
    changeLevel: (id, params) =>
      axios.put(URL + `users/changeLevel/${id}`, params),
    updateUserStatus: (id, params) =>
      axios.put(URL + `users/updateUserStatus/${id}`, params),
    changeParent: (id, params) =>
      axios.put(URL + `users/changeParent/${id}`, params)
  },
  userRanks: {
    index: params => axios.get(URL + "userRanks", params),
    list: params => axios.get(URL + "userRanks/list", params),
    box: params => axios.get(URL + "userRanks/box", params)
  },
  loss: {
    index: params => axios.get(URL + "loss", params),
    List: params => axios.get(URL + "loss/indexLoss", params),
    detail: params => axios.get(URL + "loss/indexDetail", params),
    loss: params => axios.get(URL + "loss/getUserLossSub", params),
  },
  userBackCards: {
    index: params => axios.get(URL + "userBackCards", params)
  },
  turnplateOrdersPrizes: {
    index: params => axios.get(URL + "turnplateOrdersPrizes", params)
  },
  orders: {
    index: params => axios.get(URL + "orders", params),
    show: (id, params) => axios.get(URL + `orders/${id}`, params),
    edit: (id, params) => axios.put(URL + `orders/${id}`, params),
    express: (id, params) => axios.get(URL + `orders/express/${id}`, params),
    export: params => axios.get(URL + `orders/export`, params),
    cancel: (id, params) => axios.get(URL + `orders/cancel/${id}`, params),
    delivery: params => axios.post(URL + `orders/delivery`, params)
  },
  takeOrders: {
    index: params => axios.get(URL + "takeOrders", params),
    show: (id, params) => axios.get(URL + `takeOrders/${id}`, params),
    edit: (id, params) => axios.put(URL + `takeOrders/${id}`, params),
    cancel: (id, params) => axios.get(URL + `takeOrders/cancel/${id}`, params),
    express: (id, params) =>
      axios.get(URL + `takeOrders/express/${id}`, params),
    export: params => axios.get(URL + `takeOrders/export`, params),
    delivery: params => axios.post(URL + `takeOrders/delivery`, params)
  },
  questionCates: {
    index: params => axios.get(URL + "questionCates", params),
    show: (id, params) => axios.get(URL + `questionCates/${id}`, params),
    store: params => axios.post(URL + "questionCates", params),
    edit: (id, params) => axios.put(URL + `questionCates/${id}`, params),
    status: (id, params) => axios.put(URL + `questions/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `questionCates/${id}`, params)
  },
  systemAnnouncement: {
    index: params => axios.get(URL + "systemAnnouncement", params),
    show: (id, params) => axios.get(URL + `systemAnnouncement/${id}`, params),
    status: (id, params) => axios.put(URL + `systemAnnouncement/status/${id}`, params),
    edit: (id, params) => axios.put(URL + `systemAnnouncement/${id}`, params),
  },
  questions: {
    index: params => axios.get(URL + "questions", params),
    show: (id, params) => axios.get(URL + `questions/${id}`, params),
    store: params => axios.post(URL + "questions", params),
    edit: (id, params) => axios.put(URL + `questions/${id}`, params),
    status: (id, params) => axios.put(URL + `questions/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `questions/${id}`, params)
  },
  contentCates: {
    index: params => axios.get(URL + "contentCates", params),
    show: (id, params) => axios.get(URL + `contentCates/${id}`, params),
    store: params => axios.post(URL + "contentCates", params),
    edit: (id, params) => axios.put(URL + `contentCates/${id}`, params),
    del: (id, params) => axios.delete(URL + `contentCates/${id}`, params)
  },
  contents: {
    index: params => axios.get(URL + "contents", params),
    show: (id, params) => axios.get(URL + `contents/${id}`, params),
    store: params => axios.post(URL + "contents", params),
    edit: (id, params) => axios.put(URL + `contents/${id}`, params),
    del: (id, params) => axios.delete(URL + `contents/${id}`, params),
    cate: params => axios.get(URL + "contents/cate", params)
  },
  paySettings: {
    index: params => axios.get(URL + "paySettings", params),
    show: (id, params) => axios.get(URL + `paySettings/${id}`, params),
    edit: (id, params) => axios.put(URL + `paySettings/${id}`, params),
  },
  banners: {
    index: params => axios.get(URL + "banners", params),
    show: (id, params) => axios.get(URL + `banners/${id}`, params),
    store: params => axios.post(URL + "banners", params),
    edit: (id, params) => axios.put(URL + `banners/${id}`, params),
    del: (id, params) => axios.delete(URL + `banners/${id}`, params)
  },
  userWithdraws: {
    index: params => axios.get(URL + "userWithdraws", params),
    show: (id, params) => axios.get(URL + `userWithdraws/${id}`, params),
    edit: (id, params) => axios.put(URL + `userWithdraws/${id}`, params)
  },
  settings: {
    show: params => axios.get(URL + `settings`, params),
    edit: params => axios.put(URL + `settings`, params)
  },
  areaFreights: {
    index: params => axios.get(URL + "areaFreights", params),
    show: (id, params) => axios.get(URL + `areaFreights/${id}`, params),
    store: params => axios.post(URL + "areaFreights", params),
    edit: (id, params) => axios.put(URL + `areaFreights/${id}`, params),
    del: (id, params) => axios.delete(URL + `areaFreights/${id}`, params)
  },
  areas: {
    index: params => axios.get(URL + "areas", params),
    show: (id, params) => axios.get(URL + `areas/${id}`, params),
    store: params => axios.post(URL + "areas", params),
    edit: (id, params) => axios.put(URL + `areas/${id}`, params),
    status: (id, params) => axios.put(URL + `areas/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `areas/${id}`, params)
  },
  express: {
    index: params => axios.get(URL + "express", params),
    show: (id, params) => axios.get(URL + `express/${id}`, params),
    store: params => axios.post(URL + "express", params),
    edit: (id, params) => axios.put(URL + `express/${id}`, params),
    del: (id, params) => axios.delete(URL + `express/${id}`, params)
  },
  images: {
    index: params => axios.get(URL + "images", params)
  },
  // 盲盒
  blindBox: {
    index: params => axios.get(URL + "blindBox", params),
    show: (id, params) => axios.get(URL + `blindBox/${id}`, params),
    store: params => axios.post(URL + "blindBox", params),
    edit: (id, params) => axios.put(URL + `blindBox/${id}`, params),
    status: (id, params) => axios.put(URL + `blindBox/status/${id}`, params),
    revelryMode: (id, params) => axios.put(URL + `blindBox/updateRevelryMode/${id}`, params),
    updatePrice: (params) => axios.post(URL + `blindBox/updatePrice`, params),
    updateProbability: (params) => axios.post(URL + `blindBox/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `blindBox/${id}`, params)
  },
  // 转盘
  turnplatePrizes: {
    index: params => axios.get(URL + "turnplatePrizes", params),
    show: (id, params) => axios.get(URL + `turnplatePrizes/${id}`, params),
    store: params => axios.post(URL + "turnplatePrizes", params),
    edit: (id, params) => axios.put(URL + `turnplatePrizes/${id}`, params),
    status: (id, params) => axios.put(URL + `turnplatePrizes/status/${id}`, params),
    updatePrice: (params) => axios.post(URL + `turnplatePrizes/updatePrice`, params),
    updateProbability: (params) => axios.post(URL + `turnplatePrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `turnplatePrizes/${id}`, params)
  },
  // 擂台
  challengeBox: {
    renwal: (params) => axios.post(URL + `challengeBoxPrizes/renewBoxs`, params),
    index: params => axios.get(URL + "challengeBox", params),
    show: (id, params) => axios.get(URL + `challengeBox/${id}`, params),
    store: params => axios.post(URL + "challengeBox", params),
    edit: (id, params) => axios.put(URL + `challengeBox/${id}`, params),
    status: (id, params) => axios.put(URL + `challengeBox/status/${id}`, params),
    updateShowPrice: (params) => axios.post(URL + `challengeBox/updateShowPrice`, params),
    updateRecoveryPrice: (params) => axios.post(URL + `challengeBox/updateRecoveryPrice`, params),
    updateProbability: (params) => axios.post(URL + `challengeBox/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `challengeBox/${id}`, params)
  },
  // 擂台赏品
  challengeBoxPrizes: {
    index: params => axios.get(URL + "challengeBoxPrizes", params),
    record: params => axios.get(URL + "challengeBoxPrizes/record", params),
    show: (id, params) => axios.get(URL + `challengeBoxPrizes/${id}`, params),
    store: params => axios.post(URL + "challengeBoxPrizes", params),
    edit: (id, params) => axios.put(URL + `challengeBoxPrizes/${id}`, params),
    status: (id, params) => axios.put(URL + `challengeBoxPrizes/status/${id}`, params),
    updateShowPrice: (params) => axios.post(URL + `challengeBoxPrizes/updateShowPrice`, params),
    updateRecoveryPrice: (params) => axios.post(URL + `challengeBoxPrizes/updateRecoveryPrice`, params),
    updateProbability: (params) => axios.post(URL + `challengeBoxPrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `challengeBoxPrizes/${id}`, params),
    treasure: params => axios.get(URL + "challengeBoxPrizes/treasure", params),
    treasure_prizes: params => axios.get(URL + "challengeBoxPrizes/treasure_prizes", params),
    treasure_prizes_store: params => axios.post(URL + "challengeBoxPrizes/treasure_prizes_store", params),
  },
  // 擂台赏袋
  climbTowerBoxs: {
    index: params => axios.get(URL + "climbTowerBoxs", params),
    status: (id, params) => axios.put(URL + `climbTowerBoxs/status/${id}`, params),
  },
  // 擂台赏袋
  challengeBoxOrderPrizes: {
    index: params => axios.get(URL + "challengeBoxOrderPrizes", params),
    record: params => axios.get(URL + "challengeBoxOrderPrizes/record", params),
  },
  // 用户每天余额
  userBalances: {
    index: params => axios.get(URL + "userBalances", params),
  },
  // 擂台赏品
  challengeTreasureBoxPrizes: {
    index: params => axios.get(URL + "challengeTreasureBoxPrizes", params),
    show: (id, params) => axios.get(URL + `challengeTreasureBoxPrizes/${id}`, params),
    store: params => axios.post(URL + "challengeTreasureBoxPrizes", params),
    edit: (id, params) => axios.put(URL + `challengeTreasureBoxPrizes/${id}`, params),
    status: (id, params) => axios.put(URL + `challengeTreasureBoxPrizes/status/${id}`, params),
    updatePrice: (params) => axios.post(URL + `challengeTreasureBoxPrizes/updatePrice`, params),
    updateProbability: (params) => axios.post(URL + `challengeTreasureBoxPrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `challengeTreasureBoxPrizes/${id}`, params),
  },
  // 福利屋
  wealRooms: {
    index: params => axios.get(URL + "wealRooms", params),
    show: (id, params) => axios.get(URL + `wealRooms/${id}`, params),
    status: (id, params) => axios.put(URL + `wealRooms/status/${id}`, params),
    renewal: (id, params) => axios.put(URL + `wealRooms/renewal/${id}`, params),
    store: params => axios.post(URL + "wealRooms", params),
  },
  // 用户宝箱福袋
  challengeUserBoxBags: {
    index: params => axios.get(URL + "challengeUserBoxBags", params),
    show: (id, params) => axios.get(URL + `challengeUserBoxBags/${id}`, params),
    renewal: (id, params) => axios.put(URL + `challengeUserBoxBags/renewal/${id}`, params),
  },
  wealRoomsParticipations: {
    index: (id, params) => axios.get(URL + `wealRoomsParticipations/${id}`, params),
    del: (id, params) => axios.delete(URL + `wealRoomsParticipations/${id}`, params)
  },
  // 红包
  redPackets: {
    index: params => axios.get(URL + "redPackets", params),
    show: (id, params) => axios.get(URL + `redPackets/${id}`, params),
    status: (id, params) => axios.put(URL + `redPackets/status/${id}`, params),
    records: (id, params) => axios.put(URL + `redPackets/records/${id}`, params),
    store: params => axios.post(URL + "redPackets", params),
  },
  // 商品等级
  blindBoxGoodsLevels: {
    index: params => axios.get(URL + "blindBoxGoodsLevels", params),
    show: (id, params) => axios.get(URL + `blindBoxGoodsLevels/${id}`, params),
    store: params => axios.post(URL + "blindBoxGoodsLevels", params),
    edit: (id, params) => axios.put(URL + `blindBoxGoodsLevels/${id}`, params),
    del: (id, params) => axios.delete(URL + `blindBoxGoodsLevels/${id}`, params)
  },
  // 无限宝箱赏品
  blindTreasureBoxPrizes: {
    index: params => axios.get(URL + "blindTreasureBoxPrizes", params),
    show: (id, params) => axios.get(URL + `blindTreasureBoxPrizes/${id}`, params),
    store: params => axios.post(URL + "blindTreasureBoxPrizes", params),
    edit: (id, params) => axios.put(URL + `blindTreasureBoxPrizes/${id}`, params),
    status: (id, params) => axios.put(URL + `blindTreasureBoxPrizes/status/${id}`, params),
    updatePrice: (params) => axios.post(URL + `blindTreasureBoxPrizes/updatePrice`, params),
    updateProbability: (params) => axios.post(URL + `blindTreasureBoxPrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `blindTreasureBoxPrizes/${id}`, params),
  },
  // 擂台商品等级
  challengeBoxGoodsLevels: {
    index: params => axios.get(URL + "challengeBoxGoodsLevels", params),
    show: (id, params) => axios.get(URL + `challengeBoxGoodsLevels/${id}`, params),
    store: params => axios.post(URL + "challengeBoxGoodsLevels", params),
    edit: (id, params) => axios.put(URL + `challengeBoxGoodsLevels/${id}`, params),
    del: (id, params) => axios.delete(URL + `challengeBoxGoodsLevels/${id}`, params)
  },
  // 盲盒商品
  blindBoxGoods: {
    index: params => axios.get(URL + "blindBoxGoods", params),
    show: (id, params) => axios.get(URL + `blindBoxGoods/${id}`, params),
    store: params => axios.post(URL + "blindBoxGoods", params),
    edit: (id, params) => axios.put(URL + `blindBoxGoods/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `blindBoxGoods/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `blindBoxGoods/${id}`, params)
  },
  // 塔宝箱赏品
  towerTreasureBoxPrizes: {
    index: params => axios.get(URL + "towerTreasureBoxPrizes", params),
    show: (id, params) => axios.get(URL + `towerTreasureBoxPrizes/${id}`, params),
    store: params => axios.post(URL + "towerTreasureBoxPrizes", params),
    edit: (id, params) => axios.put(URL + `towerTreasureBoxPrizes/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `towerTreasureBoxPrizes/status/${id}`, params),
    updatePrice: (params) => axios.post(URL + `towerTreasureBoxPrizes/updatePrice`, params),
    updateRecoveryPrice: (params) => axios.post(URL + `towerTreasureBoxPrizes/updateRecoveryPrice`, params),
    updateProbability: (params) => axios.post(URL + `towerTreasureBoxPrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `towerTreasureBoxPrizes/${id}`, params)
  },
  fusionPrizes: {
    index: params => axios.get(URL + "fusionPrizes", params),
    show: (id, params) => axios.get(URL + `fusionPrizes/${id}`, params),
    store: params => axios.post(URL + "fusionPrizes", params),
    edit: (id, params) => axios.put(URL + `fusionPrizes/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `fusionPrizes/status/${id}`, params),
    updateNum: (params) => axios.post(URL + `fusionPrizes/updateNum`, params),
    updateRecoveryPrice: (params) => axios.post(URL + `fusionPrizes/updateRecoveryPrice`, params),
    updateProbability: (params) => axios.post(URL + `fusionPrizes/updateProbability`, params),
    del: (id, params) => axios.delete(URL + `fusionPrizes/${id}`, params)
  },
  towerTreasureGoods: {
    index: params => axios.get(URL + "towerTreasureGoods", params),
    show: (id, params) => axios.get(URL + `towerTreasureGoods/${id}`, params),
    store: params => axios.post(URL + "towerTreasureGoods", params),
    edit: (id, params) => axios.put(URL + `towerTreasureGoods/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `towerTreasureGoods/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `towerTreasureGoods/${id}`, params)
  },
  fusionGoods: {
    index: params => axios.get(URL + "fusionGoods", params),
    show: (id, params) => axios.get(URL + `fusionGoods/${id}`, params),
    store: params => axios.post(URL + "fusionGoods", params),
    edit: (id, params) => axios.put(URL + `fusionGoods/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `fusionGoods/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `fusionGoods/${id}`, params)
  },
  // 擂台商品
  challengeBoxGoods: {
    index: params => axios.get(URL + "challengeBoxGoods", params),
    show: (id, params) => axios.get(URL + `challengeBoxGoods/${id}`, params),
    store: params => axios.post(URL + "challengeBoxGoods", params),
    edit: (id, params) => axios.put(URL + `challengeBoxGoods/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `challengeBoxGoods/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `challengeBoxGoods/${id}`, params)
  },
  climbTowerOrderPrizes: {
    index: params => axios.get(URL + "climbTowerOrderPrizes", params),
  },
  climbTowerPrizes: {
    index: params => axios.get(URL + "climbTowerPrizes", params),
    store: params => axios.post(URL + "climbTowerPrizes", params),
    updateProbability: params => axios.post(URL + "climbTowerPrizes/updateProbability", params),
    updateRecoveryPrice: params => axios.post(URL + "climbTowerPrizes/updateRecoveryPrice", params),
    del: (id, params) => axios.delete(URL + `climbTowerPrizes/${id}`, params)
  },
  // 盲盒赏品
  blindBoxPrizes: {
    index: params => axios.get(URL + "blindBoxPrizes", params),
    show: (id, params) => axios.get(URL + `blindBoxPrizes/${id}`, params),
    store: params => axios.post(URL + "blindBoxPrizes", params),
    edit: (id, params) => axios.put(URL + `blindBoxPrizes/${id}`, params),
    del: (id, params) => axios.delete(URL + `blindBoxPrizes/${id}`, params)
  },
  // 盲盒赏品
  luckDrawPrizes: {
    index: params => axios.get(URL + "luckDrawPrizes", params),
    show: (id, params) => axios.get(URL + `luckDrawPrizes/${id}`, params),
    store: params => axios.post(URL + "luckDrawPrizes", params),
    edit: (id, params) => axios.put(URL + `luckDrawPrizes/${id}`, params),
    del: (id, params) => axios.delete(URL + `luckDrawPrizes/${id}`, params)
  },
  // 福利屋赏品
  wealRoomsPrizes: {
    index: params => axios.get(URL + "wealRoomsPrizes", params),
    show: (id, params) => axios.get(URL + `wealRoomsPrizes/${id}`, params),
    store: params => axios.post(URL + "wealRoomsPrizes", params),
    edit: (id, params) => axios.put(URL + `wealRoomsPrizes/${id}`, params),
    del: (id, params) => axios.delete(URL + `wealRoomsPrizes/${id}`, params)
  },
  // 福利屋订单
  wealRoomsOrders: {
    index: params => axios.get(URL + "wealRoomsOrders", params),
    prize: (id, params) => axios.get(URL + `wealRoomsOrdersPrizes/${id}`, params)
  },
  // 福利屋赏品
  wealRoomsOrdersPrizes: {
    index: params => axios.get(URL + `wealRoomsOrdersPrizes`, params),
    show: (id, params) => axios.get(URL + `wealRoomsOrdersPrizes/${id}`, params),
  },
  // 用户角色
  userRoles: {
    index: params => axios.get(URL + "userRoles", params),
    show: (id, params) => axios.get(URL + `userRoles/${id}`, params),
    store: params => axios.post(URL + "userRoles", params),
    edit: (id, params) => axios.put(URL + `userRoles/${id}`, params),
    del: (id, params) => axios.delete(URL + `userRoles/${id}`, params)
  },
  // 用户白名单
  whiteList: {
    index: params => axios.get(URL + "whiteList", params),
    store: params => axios.post(URL + "whiteList", params),
    status: (id, params) => axios.put(URL + `whiteList/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `whiteList/${id}`, params)
  },
  // 幸运屋白名单
  luckDrawWhites: {
    index: params => axios.get(URL + "luckDrawWhites", params),
    store: params => axios.post(URL + "luckDrawWhites", params),
    status: (id, params) => axios.put(URL + `luckDrawWhites/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `luckDrawWhites/${id}`, params)
  },
  // 擂台白名单
  boxInUser: {
    index: params => axios.get(URL + "boxInUsers", params),
    store: params => axios.post(URL + "boxInUsers", params),
    status: (id, params) => axios.put(URL + `boxInUsers/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `boxInUsers/${id}`, params)
  },
  // 擂台黑名单
  challengeBoxBlack: {
    index: params => axios.get(URL + "challengeBoxBlacks", params),
    store: params => axios.post(URL + "challengeBoxBlacks", params),
    status: (id, params) => axios.put(URL + `challengeBoxBlacks/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `challengeBoxBlacks/${id}`, params)
  },
  // 用户等级
  userLevels: {
    index: params => axios.get(URL + "userLevels", params),
    show: (id, params) => axios.get(URL + `userLevels/${id}`, params),
    store: params => axios.post(URL + "userLevels", params),
    edit: (id, params) => axios.put(URL + `userLevels/${id}`, params),
    del: (id, params) => axios.delete(URL + `userLevels/${id}`, params)
  },
  // 爬塔
  climbTowers: {
    index: params => axios.get(URL + "climbTowers", params),
    show: (id, params) => axios.get(URL + `climbTowers/${id}`, params),
    store: params => axios.post(URL + "climbTowers", params),
    edit: (id, params) => axios.put(URL + `climbTowers/${id}`, params),
    del: (id, params) => axios.delete(URL + `climbTowers/${id}`, params)
  },
  // 版本
  versions: {
    index: params => axios.get(URL + "versions", params),
    show: (id, params) => axios.get(URL + `versions/${id}`, params),
    store: params => axios.post(URL + "versions", params),
    edit: (id, params) => axios.put(URL + `versions/${id}`, params),
    status: (id, params) => axios.put(URL + `versions/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `versions/${id}`, params)
  },
  // 弹窗
  pops: {
    index: params => axios.get(URL + "pops", params),
    show: (id, params) => axios.get(URL + `pops/${id}`, params),
    store: params => axios.post(URL + "pops", params),
    edit: (id, params) => axios.put(URL + `pops/${id}`, params),
    status: (id, params) => axios.put(URL + `pops/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `pops/${id}`, params)
  },
  // 充值面板
  rechargePanels: {
    index: params => axios.get(URL + "rechargePanels", params),
    show: (id, params) => axios.get(URL + `rechargePanels/${id}`, params),
    store: params => axios.post(URL + "rechargePanels", params),
    edit: (id, params) => axios.put(URL + `rechargePanels/${id}`, params),
    status: (id, params) =>
      axios.put(URL + `rechargePanels/status/${id}`, params),
    del: (id, params) => axios.delete(URL + `rechargePanels/${id}`, params)
  },
  // 充值订单
  rechargeOrders: {
    index: params => axios.get(URL + "rechargeOrders", params)
  },
  // 用户融合
  fusionOrderPrizes: {
    index: params => axios.get(URL + "fusionOrderPrizes", params)
  },
  // 用户盒柜
  blindBoxOrderPrizes: {
    index: params => axios.get(URL + "blindBoxOrderPrizes", params)
  },
  // 随机码
  luckDrawCodes: {
    index: params => axios.get(URL + "luckDrawCodes", params),
    record: params => axios.get(URL + "luckDrawCodes/record", params),
  },
  blindBoxOrderPrizeLogs: {
    index: params => axios.get(URL + "blindBoxOrderPrizeLogs", params),
    del: (id, params) =>
      axios.delete(URL + `blindBoxOrderPrizeLogs/${id}`, params)
  },
  turnplateDrawRecord: {
    index: params => axios.get(URL + "turnplateDrawRecord", params),
  },
  blindBoxOrders: {
    index: params => axios.get(URL + "blindBoxOrders", params),
    prize: params => axios.get(URL + "blindBoxOrders/prize", params)
  },
  challengeBoxOrders: {
    index: params => axios.get(URL + "challengeBoxOrders", params),
    prize: params => axios.get(URL + "challengeBoxOrders/prize", params)
  },
  coupons: {
    index: params => axios.get(URL + "coupons", params),
    show: (id, params) => axios.get(URL + `coupons/${id}`, params),
    store: params => axios.post(URL + "coupons", params),
    edit: (id, params) => axios.put(URL + `coupons/${id}`, params),
    del: (id, params) => axios.delete(URL + `coupons/${id}`, params)
  },
  challengeBoxPrizesEmptys: {
    index: params => axios.get(URL + "challengeBoxPrizesEmptys", params),
    updateEmpty: (params) => axios.post(URL + `challengeBoxPrizesEmptys/updateEmpty`, params),
    del: (id, params) => axios.delete(URL + `challengeBoxPrizesEmptys/${id}`, params)
  },
  adminRechargeLogs: {
    index: params => axios.get(URL + "adminRechargeLogs", params),
    updateStatus: (id, params) => axios.put(URL + `adminRechargeLogs/updateStatus/${id}`, params),
  },
  climbTowerOrders: {
    index: params => axios.get(URL + "climbTowerOrders", params)
  },
  smsLogs: {
    index: params => axios.get(URL + "smsLogs", params)
  },
  fusionLogs: {
    index: params => axios.get(URL + "fusionLogs", params)
  },
  smsSettings: {
    index: params => axios.get(URL + "smsSettings", params)
  },
  adminActionLogs: {
    index: params => axios.get(URL + "adminActionLogs", params)
  },
  balanceLogs: {
    index: params => axios.get(URL + "balanceLogs", params)
  },
  pointLogs: {
    index: params => axios.get(URL + "pointLogs", params)
  },
  userProfileLogs: {
    index: params => axios.get(URL + "userProfileLogs", params)
  },
  cooperates: {
    index: params => axios.get(URL + "cooperates", params),
    status: (id, params) => axios.put(URL + `cooperates/status/${id}`, params)
  },
  feedback: {
    index: params => axios.get(URL + "feedback", params),
    status: (id, params) => axios.put(URL + `feedback/status/${id}`, params)
  },
  userLevelModify: {
    index: params => axios.get(URL + "userLevelModify", params)
  },
  userParentModify: {
    index: params => axios.get(URL + "userParentModify", params)
  },
  userCoupons: {
    index: params => axios.get(URL + "userCoupons", params)
  },
  blindBoxGiveOrders: {
    index: params => axios.get(URL + "blindBoxGiveOrders", params),
    status: (id, params) => axios.put(URL + `blindBoxGiveOrders/status/${id}`, params),
    show: (id, params) => axios.get(URL + `blindBoxGiveOrders/${id}`, params)
  },
  fusionGiveOrders: {
    index: params => axios.get(URL + "fusionGiveOrders", params),
    status: (id, params) => axios.put(URL + `fusionGiveOrders/status/${id}`, params),
    show: (id, params) => axios.get(URL + `fusionGiveOrders/${id}`, params)
  },
  challengeBoxGiveOrders: {
    index: params => axios.get(URL + "challengeBoxGiveOrders", params),
    status: (id, params) => axios.put(URL + `challengeBoxGiveOrders/status/${id}`, params),
    show: (id, params) => axios.get(URL + `challengeBoxGiveOrders/${id}`, params)
  },
  backCards: {
    index: params => axios.get(URL + "backCards", params),
    show: (id, params) => axios.get(URL + `backCards/${id}`, params),
    store: params => axios.post(URL + "backCards", params),
    edit: (id, params) => axios.put(URL + `backCards/${id}`, params),
    del: (id, params) => axios.delete(URL + `backCards/${id}`, params)
  },
  couponPanels: {
    index: params => axios.get(URL + "couponPanels", params),
    show: (id, params) => axios.get(URL + `couponPanels/${id}`, params),
    store: params => axios.post(URL + "couponPanels", params),
    edit: (id, params) => axios.put(URL + `couponPanels/${id}`, params),
    del: (id, params) => axios.delete(URL + `couponPanels/${id}`, params)
  },
  signPanels: {
    index: params => axios.get(URL + "signPanels", params),
    show: (id, params) => axios.get(URL + `signPanels/${id}`, params),
    store: params => axios.post(URL + "signPanels", params),
    edit: (id, params) => axios.put(URL + `signPanels/${id}`, params),
    del: (id, params) => axios.delete(URL + `signPanels/${id}`, params)
  },
  userPromotions: {
    index: params => axios.get(URL + "userPromotions", params),
    edit: (id, params) => axios.put(URL + `userPromotions/${id}`, params)
  },
  tasks: {
    index: params => axios.get(URL + "tasks", params),
    show: (id, params) => axios.get(URL + `tasks/${id}`, params),
    store: params => axios.post(URL + "tasks", params),
    edit: (id, params) => axios.put(URL + `tasks/${id}`, params),
    del: (id, params) => axios.delete(URL + `tasks/${id}`, params)
  },
  userCommissions: {
    index: params => axios.get(URL + "userCommissions", params),
    show: (id, params) => axios.get(URL + `userCommissions/${id}`, params),
    store: params => axios.post(URL + "userCommissions", params),
    edit: (id, params) => axios.put(URL + `userCommissions/${id}`, params),
    del: (id, params) => axios.delete(URL + `userCommissions/${id}`, params)
  },
  theme: {
    index:params => axios.post(URL + "theme/index",params),
    addTheme: params => axios.post(URL + "theme/addTheme", params),
    setThemeStatus: params => axios.post(URL + "theme/setThemeStatus", params),
    getList: params => axios.post(URL + "theme/getList", params),
    getBoxGoodsList: params => axios.post(URL + "theme/getBoxGoodsList", params),
    setThemeGoods: params => axios.post(URL + "theme/setThemeGoods", params),
    deleteTheme: params => axios.post(URL + "theme/deleteTheme", params),
    deleteThemeGoods: params => axios.post(URL + "theme/deleteThemeGoods", params),
    updateTheme: params => axios.post(URL + "theme/updateTheme", params),
  }
};
export default api;
